package com.koron.css2.clientCenter.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * valve_open
 * @author 
 */
public class ValveOpenBean implements Serializable {
    private String id;

    /**
     * 单据id
     */
    private String meterReader;

    /**
     * 操作人
     */
    private String operator;

    /**
     * 操作类型 1.开阀 2.关阀
     */
    private Date openTime;

    /**
     * 操作时间
     */
    private Date openOverdueTime;

    /**
     * 逾期时间
     */
    private String valveStatus;

    /**
     * 用户id
     */
    private String userNo;

    /**
     * 欠费总额（历史时刻）
     */
    private String userAutoType;

    /**
     * 创建时间
     */
    private Date createTime;


    private String operatorAccount;

    /**
     * 远控标志
     */
    private String remoteFlag;

    /**
     * 阀控标志
     */
    private String valveControlFlag;

    /**
     * 营业区域
     */
    private String businessArea;

    public void setBusinessArea(String businessArea) {
        this.businessArea = businessArea;
    }

    public String getBusinessArea() {
        return businessArea;
    }

    public void setOperatorAccount(String operatorAccount) {
        this.operatorAccount = operatorAccount;
    }

    public void setRemoteFlag(String remoteFlag) {
        this.remoteFlag = remoteFlag;
    }

    public void setValveControlFlag(String valveControlFlag) {
        this.valveControlFlag = valveControlFlag;
    }

    public String getOperatorAccount() {
        return operatorAccount;
    }

    public String getRemoteFlag() {
        return remoteFlag;
    }

    public String getValveControlFlag() {
        return valveControlFlag;
    }

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMeterReader() {
        return meterReader;
    }

    public void setMeterReader(String meterReader) {
        this.meterReader = meterReader;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getOpenTime() {
        return openTime;
    }

    public void setOpenTime(Date openTime) {
        this.openTime = openTime;
    }

    public Date getOpenOverdueTime() {
        return openOverdueTime;
    }

    public void setOpenOverdueTime(Date openOverdueTime) {
        this.openOverdueTime = openOverdueTime;
    }

    public String getValveStatus() {
        return valveStatus;
    }

    public void setValveStatus(String valveStatus) {
        this.valveStatus = valveStatus;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getUserAutoType() {
        return userAutoType;
    }

    public void setUserAutoType(String userAutoType) {
        this.userAutoType = userAutoType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ValveOpenBean other = (ValveOpenBean) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMeterReader() == null ? other.getMeterReader() == null : this.getMeterReader().equals(other.getMeterReader()))
            && (this.getOperator() == null ? other.getOperator() == null : this.getOperator().equals(other.getOperator()))
            && (this.getOpenTime() == null ? other.getOpenTime() == null : this.getOpenTime().equals(other.getOpenTime()))
            && (this.getOpenOverdueTime() == null ? other.getOpenOverdueTime() == null : this.getOpenOverdueTime().equals(other.getOpenOverdueTime()))
            && (this.getValveStatus() == null ? other.getValveStatus() == null : this.getValveStatus().equals(other.getValveStatus()))
            && (this.getUserNo() == null ? other.getUserNo() == null : this.getUserNo().equals(other.getUserNo()))
            && (this.getUserAutoType() == null ? other.getUserAutoType() == null : this.getUserAutoType().equals(other.getUserAutoType()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMeterReader() == null) ? 0 : getMeterReader().hashCode());
        result = prime * result + ((getOperator() == null) ? 0 : getOperator().hashCode());
        result = prime * result + ((getOpenTime() == null) ? 0 : getOpenTime().hashCode());
        result = prime * result + ((getOpenOverdueTime() == null) ? 0 : getOpenOverdueTime().hashCode());
        result = prime * result + ((getValveStatus() == null) ? 0 : getValveStatus().hashCode());
        result = prime * result + ((getUserNo() == null) ? 0 : getUserNo().hashCode());
        result = prime * result + ((getUserAutoType() == null) ? 0 : getUserAutoType().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", meterReader=").append(meterReader);
        sb.append(", operator=").append(operator);
        sb.append(", openTime=").append(openTime);
        sb.append(", openOverdueTime=").append(openOverdueTime);
        sb.append(", valveStatus=").append(valveStatus);
        sb.append(", userNo=").append(userNo);
        sb.append(", userAutoType=").append(userAutoType);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}